'use strict';

module.exports = {

    parseMsg(action, payload = {}, metadata = {}) {
        const meta = Object.assign({}, {
            timestamp: Date.now()
        }, metadata);
        const responce = {
            meta,
            data: {
                action,
                payload
            }
        };
        return responce;
    }

};
